db=[]
def create_student(name, age, grade):
    return [name, age, grade]

def add_student(database,student):
    database.append(student)

def find_student_by_name(database, name):
    target = name.strip().lower()
    for student in database:
        if student[0].strip().lower() == target:
            return student
    return "Unknown,student not found"

def get_all_names(database):
    return [student[0] for student in database]

def calculate_class_average(database):
    sum1 = 0
    for student in database:
        sum1 += student[2]
    return sum1/len(database)

def get_top_student(database):
    for student in database:
        a=student[2]
        max1 =0
        target = []
        if a > max1:
            max1 = a
            target = student
        elif a <= max1:
            max1 = max1
            target = target
    return target

